package com.yeban.javase.review.previevew;

import java.io.Serializable;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/27
 */
public class User implements Serializable {
    private String name;
    private int age;
    private static final long serialVersionUID = 6037279633075127517L;

    private static int count;
    private transient String pwd;

    public User() {
    }

    public User(String name, int age, String pwd) {
        this.name = name;
        this.age = age;
        this.pwd = pwd;
    }

    /**
     * 获取
     * @return count
     */
    public static int getCount() {
        return count;
    }

    /**
     * 设置
     * @param count
     */
    public static void setCount(int count) {
        User.count = count;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return age
     */
    public int getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(int age) {
        this.age = age;
    }

    /**
     * 获取
     * @return pwd
     */
    public String getPwd() {
        return pwd;
    }

    /**
     * 设置
     * @param pwd
     */
    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String toString() {
        return "User{name = " + name + ", age = " + age + ", count = " + count + ", pwd = " + pwd + "}";
    }
}
